<?php
$bd = new DB();
//GENERA TABLA CON DESCRIPCION DE RUBROS
@$select_rubros = $bd->query("SELECT * FROM rubros", OBJ);

if($select_rubros->affected_rows > 0) {
foreach($select_rubros->rows as $arr_tramos){
	echo '<tr>';
	echo '<td>'.$arr_tramos->nombre_rubro.'</td>';
	echo '<td><div class="ventana"><a class="button small green" href="formularios/mantenedores/especificos/rubros/editar.php?id='.$arr_tramos->id_rubro.'"><span class="icon" data-icon="7" style="display: inline-block;"></span>Editar</a></div></td>';
	echo '<td><div class="ventana"><a class="button small red" href="formularios/mantenedores/especificos/rubros/eliminar.php?id='.$arr_tramos->id_rubro.'"><span class="icon" data-icon="T" style="display: inline-block;"></span>Eliminar</a></div></td>';
	echo '</tr>';
}
}else{
	echo '<tr>';
	echo '<td></td>';
	echo '<td></td>';
	echo '<td></td>';
	echo '</tr>';
}
?>